package com.ll.menu.user.app.entity;

import java.io.Serializable;

/**
 * 食物
 *
 * @author wangheng
 */

public class Food implements Serializable {
    private static final long serialVersionUID = -6957137495528346958L;

    private static final int COMPLETED = 1;

    // 已退订
    private static final int STATUS_RETURN = 1;

    // 已拍卖
    private static final int STATUS_SALE = 2;

    // 已抢购(拍卖)
    private static final int STATUS_SALE_PICK = 3;

    private String id;
    private String image;
    private String name;
    private String desc;
    private float currentPrice;
    private float oldPrice;
    private String type;
    private int countDown;

    private int count;

    private int complete;
    private int status;

    public boolean isReturn(){
        return status == STATUS_RETURN;
    }

    public boolean isSale(){
        return status == STATUS_SALE;
    }

    public boolean isSalePick(){
        return status == STATUS_SALE_PICK;
    }

    public boolean isDiscount(){
        return "1".equals(type);
    }

    public boolean isCompleted(){
        return complete == COMPLETED;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getComplete() {
        return complete;
    }

    public void setComplete(int complete) {
        this.complete = complete;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public float getCurrentPrice() {
        return currentPrice;
    }

    public void setCurrentPrice(float currentPrice) {
        this.currentPrice = currentPrice;
    }

    public float getOldPrice() {
        return oldPrice;
    }

    public void setOldPrice(float oldPrice) {
        this.oldPrice = oldPrice;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getCountDown() {
        return countDown;
    }

    public void setCountDown(int countDown) {
        this.countDown = countDown;
    }
}
